home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v9n03.arc
/
CHECKD.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-01-12
|
1KB
|
29 lines
ECHO OFF
: CHECKD allows checking of a specific disk datasets
: using check data stored in the same directory
IF "%1"=="" goto Help
IF %1==? goto Help
ECHO Checking file %1 against compressed CHKfileC report file ))A.LOG
CHKFILEC %1 ))TEMP.LOG
IF ERRORLEVEL 4 GOTO BadFIL
: To also see addtions and deletions of files, remove the /C parameter.
CFCOMPC ))A.LOG ))TEMP.LOG/P/C
DEL ))TEMP.LOG
GOTO End
:Help
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ CheckD will check the file or files specified against check data ║
ECHO ║ recorded on ))A.LOG in the current directory and report changes. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ Syntax CHECKD filename ║
ECHO ║ filename is the file or files to be checked. ║
ECHO ║ filename may include wildcard characters (? and *). ║
ECHO ║ a: specifies the drive which contains the CHECK diskette for the ║
ECHO ║ current drive. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO End
:BadFil
ECHO File name: %1 was not found in the current directory
GOTO End
:End